import request from "@/utils/request";

export const queryPageApi = (data) => request.get("/depts", { params: data });
export const save = (data) => request.post("/depts", data);

export const queryById = (id) => request.get(`/depts/${id}`);

//修改部门
export const updateApi = (data) => request.put("/depts", data);

//删除部门
export const deleteApi = (id) => request.delete(`/depts/${id}`);
